package com.luck.emp.th.logic;

import java.util.List;

import com.luck.emp.entity.EmpTThD;
import com.luck.emp.entity.EmpTThM;
import com.luck.emp.th.qry.ThQry;
import com.luck.pf.common.entity.UserBean;
import com.luck.pf.framework.logic.IBaseLogic;

/**
 * 说明
 * Copyright: Copyright (c) 2011
 * 深圳**科技
 * @author 
 * 
 */
public interface IThLogic extends IBaseLogic{
	/**
	 * 查找退货单
	 * @param qry
	 * @param cls
	 * @return
	 */
	public  <T> T findThPage(ThQry qry, Class<T> cls);
	public List<EmpTThD> findThd(String thCode);
	/**
	 * 审核退货单
	 */
	public String saveThAudit(UserBean userBean, EmpTThM entity,ThQry qry) throws Exception;

	/**
	 * 保存
	 **/
	public String saveTh(UserBean userBean, EmpTThM entity,String[] productCodes, String[] priceReals, String[] qtys, Long[] ids) throws Exception;
	/**
	 * 删除
	 */
	public String deleteTh(UserBean userBean, EmpTThM entity) throws Exception;
}